package main

import (
	"fmt"
	"time"
)

var tb = 0
func say() {
	mynb:= tb 
	tb++
	for{
		fmt.Printf("task %v run\n" , mynb)
		time.Sleep(1000* time.Millisecond)
	}
	
}

func main() {

	for i := 0; i < 10000; i++{
		go say()
	}
	
	for{
		time.Sleep(1000 * time.Millisecond)
	}
}